package SimpleSelenium.buxfer.elementObject;

import SimpleSelenium.buxfer.tests.BuxferBaseTest;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: dmytro.v.kozlov
 * Date: 7/11/13
 * Time: 1:10 PM
 * To change this template use File | Settings | File Templates.
 */
public class NavigationMenu extends BuxferBaseTest {

    @FindBy(xpath = ".//*[@id='__pageBody']/div[2]/div[2]/div/div/div[1]/div/a")
    private List<WebElement> menu = new ArrayList<WebElement>();

    public NavigationMenu(WebDriver driver) {

        PageFactory.initElements(driver, this);
    }

    public List<WebElement> getMenu() {

        return menu;
    }
}
